<h2>Index</h2>
<% form_tag(:action => 'login') do %>
  Username:
  <%= text_field_tag :username, params[:username] %>
  <br /><br />
  Password:
  <%= password_field_tag :password, params[:password] %>
  <br /><br />
  <%= check_box_tag :remember %> remember me<br /><br />
  <%= submit_tag "log in" %>
<% end %>
<br />
<%= link_to 'Register', :action => "register", :controller => "main" %> 
